using System;
using System.Data;
using System.Configuration;
using System.Web;

namespace Instedd.Labs.Forms.Library
{
    /// <summary>
    /// Summary description for SurveyFieldDescriptor
    /// </summary>
    internal class SurveyFieldDescriptor
    {
        public SurveyFieldDescriptor(string xmlElementName)
            : this(xmlElementName, xmlElementName)
        { }

        public SurveyFieldDescriptor(string xmlElementName, DbType type)
            : this(xmlElementName, xmlElementName, type)
        { }

        public SurveyFieldDescriptor(string xmlElementName, string dbFieldName)
            : this(xmlElementName, dbFieldName, DbType.String)
        { }

        public SurveyFieldDescriptor(string xmlElementName, string dbFieldName, DbType type)
        {
            this.xmlElementName = xmlElementName;
            this.dbFieldName = dbFieldName;
            this.type = type;
        }

        private string xmlElementName;

        public string XmlElementName
        {
            get { return xmlElementName; }
        }

        private string dbFieldName;

        public string DbFieldName
        {
            get { return dbFieldName; }
        }

        private DbType type;

        public DbType Type
        {
            get { return type; }
        }
    }
}